package com.canaan.business.service.inOutStock;

import com.canaan.business.domain.inOutStock.StockOccupyDetail;
import com.canaan.business.domain.vo.StockOccupyDetailVo;

import java.util.List;

/**
 * 库存占用明细Service接口
 *
 * @author ruoyi
 * @date 2023-02-11
 */
public interface IStockOccupyDetailService {
    /**
     * 查询库存占用明细
     *
     * @param id 库存占用明细主键
     * @return 库存占用明细
     */
    StockOccupyDetail selectStockOccupyDetailById(Long id);

    /**
     * 查询库存占用明细列表
     *
     * @param stockOccupyDetail 库存占用明细
     * @return 库存占用明细集合
     */
    List<StockOccupyDetail> selectStockOccupyDetailList(StockOccupyDetail stockOccupyDetail);

    List<StockOccupyDetailVo> selectStockOccupyDetailVoList(StockOccupyDetail stockOccupyDetail);

    /**
     * 新增库存占用明细
     *
     * @param stockOccupyDetail 库存占用明细
     * @return 结果
     */
    int insertStockOccupyDetail(StockOccupyDetail stockOccupyDetail);

    /**
     * 批量新增库存占用明细
     *
     * @param stockOccupyDetailList 库存占用明细列表
     * @return 结果
     */
    int batchInsertStockOccupyDetail(List<StockOccupyDetail> stockOccupyDetailList);

    /**
     * 修改库存占用明细
     *
     * @param stockOccupyDetail 库存占用明细
     * @return 结果
     */
    int updateStockOccupyDetail(StockOccupyDetail stockOccupyDetail);

    /**
     * 批量修改库存占用明细
     *
     * @param stockOccupyDetailList 库存占用明细列表
     * @return 结果
     */
    int batchUpdateStockOccupyDetail(List<StockOccupyDetail> stockOccupyDetailList);

    /**
     * 批量删除库存占用明细
     *
     * @param ids 需要删除的库存占用明细主键集合
     * @return 结果
     */
    int deleteStockOccupyDetailByIds(Long[] ids);

    /**
     * 删除库存占用明细信息
     *
     * @param id 库存占用明细主键
     * @return 结果
     */
    int deleteStockOccupyDetailById(Long id);

    /**
     * 查询库存占用明细
     *
     * @param no 编号
     * @return 库存占用明细
     */
    StockOccupyDetail selectStockOccupyDetailByNo(String no);

    /**
     * 批量删除库存占用明细
     *
     * @param nos 需要删除的编号集合
     * @return 结果
     */
    int deleteStockOccupyDetailByNos(String[] nos);

    /**
     * 删除库存占用明细信息
     *
     * @param no 编号
     * @return 结果
     */
    int deleteStockOccupyDetailByNo(String no);

    /**
     * 获取占用数据
     * @param storehouseNo
     * @param productNo
     * @param occupyType
     * @return
     */
    List<StockOccupyDetail> getStockOccupyDetailByStorehouseNoProductNo(String storehouseNo, String productNo, String occupyType);

}
